/**
 * 
 */
package se.cirrus.base;
import java.util.logging.*;
import se.cirrus.base.model.*;

/**
 * @author Winquman
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		try {
			LogManager lm = LogManager.getLogManager();
			
			Formatter formatter = new SimpleFormatter();
			FileHandler fileHandler = new FileHandler("%u/cirrus%g.log", true);
			fileHandler.setFormatter(formatter);
			StreamHandler consoleHandler = new StreamHandler(System.out, formatter);
			
			Logger log = Logger.getLogger("ALL");
			log.addHandler(fileHandler);
			log.addHandler(consoleHandler);
			
			log.fine("\n\n===========================================");
			log.fine("Cirrus Base");
			log.fine("Logs initialized.");
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(-1);
		}
	}

}
